<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
		<!-- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"> -->
		<style>
			#demo{
				width: 200px;
				height: 200px;
				background-color: skyblue;
			}
		</style>
	</head>
	<body>
		<div id="demo"></div>
		<script type="text/javascript" >
			const demo = document.getElementById('demo')
			let time

			demo.addEventListener('touchstart',()=>{
				time = Date.now()
				console.log('touchstart事件被触发')
			})

			demo.addEventListener('click',()=>{
				console.log('click事件被触发',Date.now()-time)
			})

			

		</script>
	</body>
</html>